import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 实销信息变更查询

// GET 查询列表 /vsSalesReportChange/searchRetailReportChangeForFactory
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeForFactory`, params)

// GET 导出 /vsSalesReportChange/searchRetailReportChangeForFactoryExcel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeForFactoryExcel`,params, {
  responseType: 'arraybuffer'
})



// GET 查询详情  /vsSalesReportChange/searchRetailReportChangeById
export const getInfoById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeById?id=${Id}`)

// 零售订单维护	查询销售顾问	sysmanage	 /employeeNew/getEmployees	get
export const getEmployees = (params) => axios.get(`${SERVER.SYSMANAGE}/employeeNew/getEmployees`, {
  params
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

// GET 查询审核记录  /vsSalesReportChange/searchRetailReportChangeById
export const getSalesChangeReceiveAuditCheck = params => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/getSalesChangeReceiveAuditCheck?cmsApplyNo=${params.cmsApplyNo}&ownerCode=${params.ownerCode}`);

